package com.gqz.equip.mapstruct;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.equip.entity.TBizcEneryEquipEntity;
import com.gqz.equip.vo.TBizcEneryEquipVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @ClassName TBizcEneryEquipMapstruct
 * @Description 新能源设备信息
 * @Date 2022-10-20 09:57:50
 * @Version 1.0
 * @Author input you name
 */
@Mapper(componentModel = "spring", imports = {})
@Component
public interface TBizcEneryEquipMapstruct {


    TBizcEneryEquipVo toVo(TBizcEneryEquipEntity entity);

    List<TBizcEneryEquipVo> toVos(List<TBizcEneryEquipEntity> entity);

    @Mapping(target = "optimizeJoinOfCountSql", ignore = true)
    Page<TBizcEneryEquipVo> toVos(Page<TBizcEneryEquipEntity> entity);

    TBizcEneryEquipEntity toEntity(TBizcEneryEquipVo vo);

    List<TBizcEneryEquipEntity> toEntitys(List<TBizcEneryEquipVo> vos);

}
